home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CSheafMesh
- {
- string MeshFile = "Models/B_Sheaf.mesh";
- string SkinFile = "Models/B_Sheaf.skin";
- }
-
- class CSheafStateControl extends CUnitLifeControl
- {
- void CSheafStateControl()
- {
- CUnitLifeControl(500.0);
- m_DestroyPause = 7.5;
- m_ExplosionId = "EXPLID_ItemExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseSheaf extends CBuilding, CUnitWithStateControl
- {
- void CBaseSheaf()
- {
- InitializeModelAsStatic("CSheafMesh");
- CUnitWithStateControl("CSheafStateControl");
- Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
- }
- }
-
- // Single game object
- class CMountedSheaf extends CBaseSheaf
- {
- void CMountedSheaf()
- {
- InitializeGroundControl();
- }
- }
-
-
-